//
//  PopoverViewController.swift
//  swift_demo_weibo
//
//  Created by 杨兵 on 15/5/14.
//  Copyright (c) 2015年 bing. All rights reserved.
//

import UIKit

class PopoverViewController: UIViewController ,UITableViewDataSource, UITableViewDelegate{
    /// 好友分组
    lazy var friendGroup: [String] = {
        return ["首页", "好友圈", "群微博", "我的微博"];
        }()
    
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let popcell = tableView.dequeueReusableCellWithIdentifier("PopoverCell") as! PopoverCell
        popcell.textLabel?.text = friendGroup[indexPath.row]
        return popcell
    }

    
    func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return friendGroup.count
    }
    


}
